// database.dart

import 'dart:async';

import 'package:floor/floor.dart';
import 'package:sqflite/sqflite.dart' as sqflite;

import 'dao/AttributeDao.dart';
import 'dao/CustomerBillAttrDao.dart';
import 'dao/CustomerBillDao.dart';
import 'dao/ProductAttrDao.dart';
import 'dao/ProductDao.dart';
import 'entity/AttributeBean.dart';
import 'entity/CustomerBill.dart';
import 'entity/CustomerBillAttr.dart';
import 'entity/ProductAttrBean.dart';
import 'entity/ProductBean.dart';
import 'type_converter.dart';

part 'database.g.dart'; // the generated code will be there

@Database(version: 1, entities: [AttributeBean, ProductBean, CustomerBill, ProductAttrBean, CustomerBillAttr])
@TypeConverters([DateTimeConverter, ListIntConverter])
abstract class AppDatabase extends FloorDatabase {
  ProductDao get productDao;
  AttributeDao get attributeDao;
  CustomerBillDao get customerBillDao;
  ProductAttrDao get productAttrDao;
  CustomerBillAttrDao get customerBillAttrDao;
}
